import http from "./index.js";


export function getData(){
    return http(
        '/home/course'
    ).then(res => {
        return res.data
    })
}

export function putData(data){
    http.put('/home/course',{
        data
    }).then()
}

export function postData(data){
    http.post('/home/course',{
        data
    }).then()
}
